<html>
<head>
<?
	include ('../../inc/global.php');
	$root = 'http://cs.newpaltz.edu/~N02223133/2011/';
	include('productsfunction.php');
	$prod = doproductoutput()
?>
<title>Products List</title>
<link rel="stylesheet" type="text/css" href="<? echo $root?>style.css">
</head>
<body>
<h1 style="text-align:center;">Admin Products Display</h1>
<table align="center">
<? while ($prodout = $prod->fetch_assoc()){ ?>
<tr>
<td>
<h2><?=$prodout['product_name']?></h2>
</td>
<td valign="middle"><h2><a href="delete.php?id=<?=$prodout['id']?>">Delete</a></h2></td>
<td valign="middle"><h2><a href="edit.php?id=<?=$prodout['id']?>">Modify</a></h2></td>
</tr>
<? } ?>
<tr>
<td></td><td></td>
<td><h2><a href="#">Add Product</a></h2></td>
</tr>
</table>
</body>
</html>